package com.shrimpcolo.johnnytam.thisSuper;

public class GrandFather {
	private String name;
	private int age;
	
	//v0.2
	private String hobby;
		
	public GrandFather(){		
	}
	
	//v0.1 this.属性 问题
	public GrandFather(String name, int age){		
		this.name = name;
		this.age = age;
	}
	
	//v0.2 this()构造方法 问题
	public GrandFather(String hobby) {
		this("檀棉花", 200);
		this.hobby = hobby;
	}
	
	
	public void showInfo() {
		System.out.println("名字： " + name + "; 年龄： " + age + "岁" + "\n爱好是： " + hobby);		
	}
	
	
		
}
